package com.nuedu.corejava.ch2.homework;

import java.util.Scanner;

public class HomeWork3 {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		System.out.println("请输入一个华氏度");
		int h1=sc.nextInt();
		int w1,w2,h2;
		w1=(h1-32)*5/9;
		Scanner sc1=new Scanner(System.in);
		System.out.println("请输入一个温氏度");
		w2=sc1.nextInt();
		h2=w2*9/5+32;
		System.out.println(h1+"转换为温氏度为"+w1+","+w2+"转换为华氏度为"+h2);
	}

}
